/* 考试结果页面样式 */

/* 考试基本信息卡片 */
.exam-info-card {
    background-color: var(--card-color);
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exam-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.exam-detail {
    display: flex;
    justify-content: space-between;
}

.detail-item {
    text-align: center;
    flex: 1;
}

.item-label {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.item-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.item-value.primary {
    color: var(--primary-color);
}

/* 成绩分析 */
.score-analysis {
    background-color: var(--card-color);
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    margin: 0;
    color: var(--text-color);
}

.score-gauge-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.score-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 20px;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-progress {
    stroke-linecap: round;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.gauge-label {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--light-text);
}

.score-details {
    flex: 1;
}

.score-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.score-status.success {
    color: var(--success-color);
}

.score-status.fail {
    color: var(--error-color);
}

.score-status i {
    margin-right: 10px;
}

.score-comparison {
    display: flex;
}

.comparison-item {
    margin-right: 20px;
}

.comparison-label {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.comparison-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.comparison-value.accent {
    color: var(--accent-color);
}

.question-types-analysis {
    margin-top: 20px;
}

.type-item {
    margin-bottom: 15px;
}

.type-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.type-name {
    font-size: 14px;
    color: var(--text-color);
}

.type-score {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

.type-progress {
    display: flex;
    align-items: center;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.progress-percentage {
    width: 40px;
    text-align: right;
    font-size: 12px;
    color: var(--light-text);
    margin-left: 10px;
}

/* 知识点掌握情况 */
.knowledge-mastery {
    background-color: var(--card-color);
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radar-chart-container {
    height: 250px;
    margin: 20px 0;
}

.knowledge-list {
    margin-top: 20px;
}

.knowledge-item {
    margin-bottom: 15px;
}

.knowledge-name {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.knowledge-progress {
    display: flex;
    align-items: center;
}

.mastery-level {
    width: 40px;
    text-align: right;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

.excellent, .progress.excellent {
    color: #4caf50;
    background-color: #4caf50;
}

.good, .progress.good {
    color: #8bc34a;
    background-color: #8bc34a;
}

.average, .progress.average {
    color: #ffc107;
    background-color: #ffc107;
}

.weak, .progress.weak {
    color: #ff5722;
    background-color: #ff5722;
}

/* 错题分析 */
.wrong-analysis {
    background-color: var(--card-color);
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.more-link {
    font-size: 12px;
    color: var(--light-text);
    text-decoration: none;
}

.more-link i {
    margin-left: 5px;
}

.wrong-list {
    margin-top: 15px;
}

.wrong-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.wrong-item:last-child {
    border-bottom: none;
}

.question-number {
    width: 30px;
    height: 30px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
}

.question-text {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.answer-info {
    font-size: 12px;
}

.your-answer {
    margin-bottom: 5px;
}

.your-answer.wrong {
    color: var(--error-color);
}

.correct-answer {
    color: var(--success-color);
}

.question-action {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.review-btn {
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
}

/* 操作按钮区 */
.result-actions {
    display: flex;
    padding: 0 15px 15px;
    gap: 10px;
    margin-bottom: 60px; /* 为底部导航留出空间 */
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.action-btn i {
    font-size: 18px;
    margin-bottom: 5px;
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.action-btn.outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 320px) {
    .score-gauge {
        width: 100px;
        height: 100px;
    }
    
    .gauge-value {
        font-size: 20px;
    }
    
    .gauge-label {
        font-size: 10px;
    }
    
    .result-actions {
        flex-direction: column;
    }
} 